﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="choose_seat.aspx.cs" Inherits="Cinemax.choose_seat" %>

<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    <title>Rạp Cinemax - Chọn ghế</title>
    <script type="text/javascript">
        
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="menu_conent_place_holder" runat="server">
    <li><a href="home.aspx" id="A1">Trang chủ</a></li>
    <li><a href="list_film.aspx" id="A2">Phim</a></li>
    <li><a href="film_schedule.aspx" id="A3" class="active">Lịch chiếu/Đặt vé</a></li>
    <li><a href="ticket_promotion.aspx" id="A4">Giá vé &#38; Khuyến mãi</a></li>
    <li><a href="personalize.aspx" id="A5">Quản lý</a></li>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="maincontent" runat="server">
    <div id="datve_header">
        <a href="">Chọn suất chiếu</a> &gt; <a class="active" href="">Chọn ghế</a> &gt;
        <a href="">Xác nhận thông tin</a> &gt; <a href="">Hoàn tất</a>
    </div>
    <div id="block2">
        <h2 style="text-align: center; color: aqua;">
            Chọn ghế</h2>
        <div style="margin: auto; width: 450px;">
            <img alt="" src="img/ScreenForSeating_450.png" /></div>
        <br />
        <table cellpadding="0" cellspacing="0" style="font-size: 13px; margin: 10px auto;">
            <%
                for (int i = 0; i < SoHang; i++)
                {
            %>
            <tr>
                <%
                    for (int j = 0; j < SoDay; j++)
                    {
                        int vtGhe = i * pc.SoLuongDay + j;
                        try
                        {
                            Cinemax.DTO.VeDTO ve = dsVe.ElementAt(vtGhe);
                            if (dsVeTrong.Contains(ve.MaVe))
                            {
                %>
                <td>
                    <img alt="<%=dsVe.ElementAt(vtGhe).MaVe %>" src="img/seat_0.gif" onclick="return select_seat(this);" />
                </td>
                <%
}
                            else
                            {
                %>
                <td>
                    <img alt="" src="img/seat_1.gif" />
                </td>
                <%
                    }
                        }
                        catch (Exception ex)
                        {
                            throw ex;
                        }

                    }
                %>
            </tr>
            <%
                }
            %>
        </table>
        <br />
        <table cellpadding="5" cellspacing="0" style="font-size: 13px;">
            <tr>
                <td>
                    <img alt="" src="img/seat_0.gif" />
                </td>
                <td>
                    Ghế trống
                </td>
            </tr>
            <tr>
                <td>
                    <img alt="" src="img/seat_1.gif" />
                </td>
                <td>
                    Ghế đã đặt
                </td>
            </tr>
            <tr>
                <td>
                    <img alt="" src="img/seat_5.gif" />
                </td>
                <td>
                    Ghế đang chọn
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <%
                    
                    %>
                    <input type='button' name='basic' value='Đặt vé' id="basic-modal" class='basic' />
                </td>
            </tr>
        </table>
        <div>
            <img alt="" src="img/cont_box06b.jpg" /></div>
    </div>
</asp:Content>
